home *** CD-ROM | disk | FTP | other *** search
/ Sunday Savers: Sharing Fun! I Know My Savior Lives / Sunday Savers: Sharing Fun! I Know My Savior Lives.iso / mac / Xtras / Buddy API 1.6 / Buddy API Docs.swf / texts / 1544.txt < prev    next >
Encoding:
Text File  |  2004-08-31  |  3.3 KB  |  115 lines

  1. 134
  2. --- RECORDSEPARATOR ---
  3.  
  4. --- RECORDSEPARATOR ---
  5. XCopyProgress
  6. --- RECORDSEPARATOR ---
  7.  
  8. --- RECORDSEPARATOR ---
  9. (continued)
  10. --- RECORDSEPARATOR ---
  11.  
  12. --- RECORDSEPARATOR ---
  13. Notes:
  14. --- RECORDSEPARATOR ---
  15.  
  16. --- RECORDSEPARATOR ---
  17. A return value of 7 (Dest file is newer than Source file) can only be returned when 
  18. --- RECORDSEPARATOR ---
  19. Overwrite is "IfNewer". The other return values can be returned for all Overwrite 
  20. --- RECORDSEPARATOR ---
  21. options. 
  22. --- RECORDSEPARATOR ---
  23. The "IfNewer" option operates as follows: if both files have internal version 
  24. --- RECORDSEPARATOR ---
  25. numbers, then these numbers are used for comparison, otherwise the dates of the 
  26. --- RECORDSEPARATOR ---
  27. two files are used for comparison. 
  28. --- RECORDSEPARATOR ---
  29. Seven Flags are defined: 
  30. --- RECORDSEPARATOR ---
  31. CP_NOCANCEL 
  32. --- RECORDSEPARATOR ---
  33. --- RECORDSEPARATOR ---
  34. does not show the Cancel button. 
  35. --- RECORDSEPARATOR ---
  36. CP_NOFILENAME 
  37. --- RECORDSEPARATOR ---
  38. --- RECORDSEPARATOR ---
  39. does not display the file names while copying. 
  40. --- RECORDSEPARATOR ---
  41. CP_STOPONERROR 
  42. --- RECORDSEPARATOR ---
  43. --- RECORDSEPARATOR ---
  44. stop copying if an error occurs 
  45. --- RECORDSEPARATOR ---
  46. CP_NODIALOG 
  47. --- RECORDSEPARATOR ---
  48. --- RECORDSEPARATOR ---
  49. does not show the dialog box 
  50. --- RECORDSEPARATOR ---
  51. CP_CALLBACK 
  52. --- RECORDSEPARATOR ---
  53. 16 
  54. --- RECORDSEPARATOR ---
  55. enable the copy callback handler 
  56. --- RECORDSEPARATOR ---
  57. CP_ANIMATE 
  58. --- RECORDSEPARATOR ---
  59. 32 
  60. --- RECORDSEPARATOR ---
  61. shows system file copying animation (Windows only) 
  62. --- RECORDSEPARATOR ---
  63. CP_SIZEUPDATE 
  64. --- RECORDSEPARATOR ---
  65. 64 
  66. --- RECORDSEPARATOR ---
  67. updates the cal
  68. --- RECORDSEPARATOR ---
  69. lback handler by size 
  70. --- RECORDSEPARATOR ---
  71. You can add any of these flags together to customize the dialog box. 
  72. --- RECORDSEPARATOR ---
  73. To implement the callback handler, use the CP_CALLBACK flag. Typically you 
  74. --- RECORDSEPARATOR ---
  75. would also use the CP_NODIALOG flag and implement your own dialog box. If you 
  76. --- RECORDSEPARATOR ---
  77. use this flag then you need to add a handler called 'baCopyProgressUpdate'. This 
  78. --- RECORDSEPARATOR ---
  79. handler needs to be a movie script. 
  80. --- RECORDSEPARATOR ---
  81. This handler will have two arguments passed into it - the percentage copied so far 
  82. --- RECORDSEPARATOR ---
  83. and the current file being copied. The handler will be called whenever the 
  84. --- RECORDSEPARATOR ---
  85. percentage copied has increased by one, or a new file is being copied. If you 
  86. --- RECORDSEPARATOR ---
  87. specify the CP_SIZEUPDATE, then your handler will be called whenever 
  88. --- RECORDSEPARATOR ---
  89. approximately 64k of data has been copied, rather than by percentage. 
  90. --- RECORDSEPARATOR ---
  91. To stop copying, you can return 1 in your handler; return 0 or no return to continue 
  92. --- RECORDSEPARATOR ---
  93. copying. An example handler is listed below - the update functions would be used 
  94. --- RECORDSEPARATOR ---
  95. to update your own progress dialog. 
  96. --- RECORDSEPARATOR ---
  97. on baCopyProgressUpdate percentage, filename 
  98. --- RECORDSEPARATOR ---
  99. updateProgressBar percentage 
  100. --- RECORDSEPARATOR ---
  101. updateStatus fileName 
  102. --- RECORDSEPARATOR ---
  103. if keyPressed( " " ) then -- if user presses space bar, stop copying 
  104. --- RECORDSEPARATOR ---
  105. return 1 
  106. --- RECORDSEPARATOR ---
  107. end if 
  108. --- RECORDSEPARATOR ---
  109. end 
  110. --- RECORDSEPARATOR ---
  111. The callback handler is only available on Director.